package com.spdzen.model;


import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;


/**
 * <p>
 * 问卷调查题目
 * </p>
 *
 * @author accountwcx@qq.com
 * @since 2017-03-16
 */
@TableName("spd_survey_question")
public class SurveyQuestion extends Model<SurveyQuestion> {

    private static final long serialVersionUID = 1L;


	@TableId("id")
	private Long id;
    /**
     * 外键spd_survey.id
     */

	@TableField("survey_id")
	private Long surveyId;
    /**
     * 题目内容
     */

	@TableField("content")
	private String content;
    /**
     * 1表示单选，2表示多选，3表示用户输入文本
     */

	@TableField("type")
	private Integer type;
    /**
     * 是否必答，0表示否，1表示是
     */

	@TableField("require_answer")
	private Integer requireAnswer;
    /**
     * 题目选项，JSON数组，格式{key:"A", value: "是", type: 1}，1表示选项，2表示用户输入文本
     */

	@TableField("options")
	private String options;
    /**
     * 操作时间
     */

	@TableField("operate_time")
	private Date operateTime;
    /**
     * 操作人id
     */

	@TableField("operate_id")
	private Date operateId;


	public Long getId() {
		return id;
	}

	public SurveyQuestion setId(Long id) {
		this.id = id;
		return this;
	}

	public Long getSurveyId() {
		return surveyId;
	}

	public SurveyQuestion setSurveyId(Long surveyId) {
		this.surveyId = surveyId;
		return this;
	}

	public String getContent() {
		return content;
	}

	public SurveyQuestion setContent(String content) {
		this.content = content;
		return this;
	}

	public Integer getType() {
		return type;
	}

	public SurveyQuestion setType(Integer type) {
		this.type = type;
		return this;
	}

	public Integer getRequireAnswer() {
		return requireAnswer;
	}

	public SurveyQuestion setRequireAnswer(Integer requireAnswer) {
		this.requireAnswer = requireAnswer;
		return this;
	}

	public String getOptions() {
		return options;
	}

	public SurveyQuestion setOptions(String options) {
		this.options = options;
		return this;
	}

	public Date getOperateTime() {
		return operateTime;
	}

	public SurveyQuestion setOperateTime(Date operateTime) {
		this.operateTime = operateTime;
		return this;
	}

	public Date getOperateId() {
		return operateId;
	}

	public SurveyQuestion setOperateId(Date operateId) {
		this.operateId = operateId;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}